#include <stdio.h>
#include <string.h>
#include <stdlib.h>

char *IntAdd(char *s1,char * s2)
{
	int digA,digB,Wela=0;
	int i=strlen(s1)-1,j=strlen(s2)-1,k=0;
	char *ret=(char*)calloc(52,sizeof(char));
	while(1)
	{
		digA=(i>=0)?s1[i]-'0':0;
		digB=(j>=0)?s2[j]-'0':0;
		i--,j--;
		ret[k++]=(digA+digB)%10+Wela+'0';
		if(i<0&&j<0) break;	
		Wela=(digA+digB)/10;
	}
	int right=k-1,left=0;
	char temp;
	while(left<=right)
	{
		temp=ret[left];
		ret[left]=ret[right];
		ret[right]=temp;
		left++;
		right--;
	}
	return ret;
}
int main(void)
{
	char s1[51],s2[51];
	scanf("%s%s",s1,s2);
	printf("%s",IntAdd(s1,s2));
	return 0;
}